package yr.website

class BootStrap {
    def userService
    def init = { servletContext ->
        def manager = Manager.findByAccount("admin")
        if (!manager) {
            def manager1 = new Manager(account: "admin", password: userService.getMD5("123456")).insert()
        }
    }
    def destroy = {
    }
}
